package com.example.blogsystem_ssm.service;

import com.example.blogsystem_ssm.mapper.AuthorInfoMapper;
import com.example.blogsystem_ssm.model.Blog;
import com.example.blogsystem_ssm.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AuthorInfoService {
    @Autowired
    AuthorInfoMapper mapper;
    public Blog getBlog(Integer blogId){
        return  mapper.getBlog(blogId);
    }
    public User selectById(Integer userId){
        return  mapper.selectById(userId);
    }
}
